package Test;


import java.util.ArrayList;
import java.util.List;

public class Test {

    public List<List<Integer>> generate(int numRows) {
        List<List<Integer>> ret = new ArrayList<>();
        for (int i = 0; i < numRows; i++){
            List<Integer> list = new ArrayList<>();
            for (int j = 0; j <= i; j++){
                if (j == 0 || j == i){
                    list.add(1);
                } else {
                    list.add(ret.get(i - 1).get(j - 1) + ret.get(i - 1).get(j));
                }
            }
            ret.add(list);
        }
        return ret;
    }
    public static List<Character> func(String s1, String s2){
        List<Character> ret = new ArrayList<>();
        for (int i = 0; i < s1.length(); i++){
            char t = s1.charAt(i);
            if (s2.indexOf(t) == -1){
                ret.add(t);
            }
        }
        return ret;
    }

    public static void main(String[] args) {
        String s1 = "welcome to bit";
        String s2 = "come";
        List<Character> list = func(s1,s2);
        System.out.println(list);
    }
    public static void main1(String[] args) {
        List<Integer> arrayList = new ArrayList<>();
        List<List<Integer>> lists = new ArrayList<>();
        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);
        //System.out.println(arrayList);
        lists.add(arrayList);
        System.out.println(lists);
    }
}
